<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!--准备一个容器-->
    <div id="root">
        <h1>你好{{name}}</h1>

    </div>
    <script>
        Vue.config.productionTip=false//阻止vue启动时产生提
       const v= new Vue({
            el:'#root',
            /*data:{
                name:'cljh'
            }*/
           data: function (){

               return{
                   name:'cljh'
               }
           }
       })
        console.log(v);
        /*v.$mount('#root')*/

        /*setTimeout(()=>{
            v.$mount('#root')
        },1000);//定时器*/
    </script>
</body>
</html>